package guo.list_set;

import java.lang.reflect.Field;
import java.util.*;

public class Test1 {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        HashMap<Object, Object> map = new HashMap<>();
        Class<? extends HashMap> aClass = map.getClass();
        Field table = aClass.getDeclaredField("table");
        table.setAccessible(true);

        Object[] o = (Object[]) table.get(map);
        System.out.println(o.length);
    }
}
